package org.etherframework.tests.features.wiring.config
{
	import org.etherframework.core.EtherConfig;
	import org.etherframework.tests.features.wiring.processors.Hello;
	import org.etherframework.wire.ProcessorFactory;
	import org.etherframework.wire.Wiring;
	import org.etherframework.wire.processors.Inject;
	
	public class ConfigWithCustomProcessor extends EtherConfig
	{
		override public function initializeModules():void
		{
			super.initializeModules();
			
			// By default Wiring module uses Inject and MediationHandler
			// metatags but we can overwrite it by passing vestor of
			// necassary ProcessorFactory.
			// Here we use our custom processor and tell to the framework 
			// to lookup custom [Hello] and builtin [Inject] metatags.
			Wiring.initialize(Vector.<ProcessorFactory>(
				[new ProcessorFactory(Inject), new ProcessorFactory(Hello)]));
		}
	}
}